Implement dots and dashes on X
authorPo Lu <luangruo@yahoo.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 28 Apr 2024 03:58:54 +0000 (11:58 +0800)
commite844b81c56d74aa2b2efa0ce98ed3de71647e656
tree0dd2259e464b4c8bc0c80efbdad27dfa6abfd915
parent77a170a175dfeb17dab23e41668b8497b8b3b9d7
Implement dots and dashes on X

* src/dispextern.h (enum face_underline_type): Indent and expand
commentary as to the new dependency on the order of its
enumerals.

* src/xfaces.c (realize_gui_face): Enable dots and dashes on
window systems.

* src/xterm.c (x_draw_underwave): Don't define unused variable
on Cairo builds.
(x_draw_dash): New function; implement for X and Cairo.
(x_fill_underline): New function.  Delegate to x_fill_rectangle
or x_draw_dash as appropriate.
(x_draw_glyph_string): Call x_fill_underline rather than
x_fill_rectangle.
src/dispextern.h
src/xfaces.c
src/xterm.c